HighContrast: more combobox fixes
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 5 Jan 2016 18:01:33 +0000 (10:01 -0800)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 5 Jan 2016 18:01:54 +0000 (10:01 -0800)
Taken from Adwaita.

gtk/theme/HighContrast/_common.scss
gtk/theme/HighContrast/gtk.css

index d367dd845542744e79401be7ed90563a708ef54e..9da926f72cf7116fe43342a4a555f97d74955620 100644 (file)
@@ -767,13 +767,15 @@ combobox {
       border-radius: 0 3px 3px 0;
     }
   }
-  & > button.combo, & > button.combo:backdrop {
-    // It is needed to specify the backdrop button or it gets overridden
-    border-radius: 0 3px 3px 0;
-    border-left-style: none;
+  & > button.combo:not(:only-child) {
+    &:dir(ltr) {
+      border-top-left-radius: 0;
+      border-bottom-left-radius: 0;
+      border-left-style: none;
+    }
     &:dir(rtl) {
-      border-radius: 3px 0 0 3px;
-      border-left-style: solid;
+      border-top-right-radius: 0;
+      border-bottom-right-radius: 0;
       border-right-style: none;
     }
   }
index 0a2b696cfbe00eb17d3b8006df485e5f7a78c501..99d35413e994a5133520fd2f1c474d594fe6603e 100644 (file)
@@ -912,13 +912,14 @@ combobox {
     border-radius: 3px 0 0 3px; }
     combobox > entry.combo:dir(rtl) {
       border-radius: 0 3px 3px 0; }
-  combobox > button.combo, combobox > button.combo:backdrop {
-    border-radius: 0 3px 3px 0;
+  combobox > button.combo:not(:only-child):dir(ltr) {
+    border-top-left-radius: 0;
+    border-bottom-left-radius: 0;
     border-left-style: none; }
-    combobox > button.combo:dir(rtl), combobox > button.combo:backdrop:dir(rtl) {
-      border-radius: 3px 0 0 3px;
-      border-left-style: solid;
-      border-right-style: none; }
+  combobox > button.combo:not(:only-child):dir(rtl) {
+    border-top-right-radius: 0;
+    border-bottom-right-radius: 0;
+    border-right-style: none; }
 
 /************
  * Toolbars *